//
//  HomeHeadReusableView.m
//  ExhibitionHall
//
//  Created by 王洋 on 2019/5/29.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "HomeHeadReusableView.h"



@implementation HomeHeadReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = UIColorHex(0xf1f1f1);
        [self layout];
    }
    return self;
}

- (void)layout {
    
    [self addSubview:self.bannerView];
    
    [self.bannerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.bottom.mas_equalTo(0);
    }];
    
}

- (void)configBannerCellWithModel:(NSMutableArray *)arr ImgClickedBlock:(CycleImgClickedBlock )block {
    
    if (arr.count) {
        
    } else {
        arr = @[@"http://i1.article.fd.zol-img.com.cn/t_s640x2000/g5/M00/02/00/ChMkJ1qXtfCIMQYIAATIlbGQi_sAAlC1QCBHjIABMit947.jpg",@"http://imgsrc.baidu.com/forum/w%3D580/sign=52e4a69b3812b31bc76ccd21b6193674/3b755a43fbf2b211b27abf92cb8065380dd78e66.jpg?v=tbs",@"http://i3.article.fd.zol-img.com.cn/t_s640x2000/g5/M00/02/00/ChMkJlqXte-IcwyxAAIyPVZ4AswAAlC1QBmIEMAAjJV463.jpg"
                ].mutableCopy;
    }
    
    
    
    self.bannerView.imageURLStringsGroup = [arr mutableCopy];

    
}


- (SDCycleScrollView *)bannerView {
    if (!_bannerView) {
        _bannerView = [[SDCycleScrollView alloc] init];
        _bannerView.bannerImageViewContentMode = UIViewContentModeScaleToFill;
    }
    return _bannerView;
}

@end
